import request from '@/utils/request'

const baseUrl = ${.BaseUrl}
export function getPage(params) {
  return request({
    url: baseUrl + '${.TableName | formatEntityField}/getPage',
    method: 'get',
    params
  })
}
export function get(params) {
  return request({
    url: baseUrl + '${.TableName | formatEntityField}/get',
    method: 'get',
    params
  })
}
export function save(params) {
  return request.post(baseUrl + '${.TableName | formatEntityField}/save', params)
}
export function update(params) {
  return request.post(baseUrl + '${.TableName | formatEntityField}/edit', params)
}
export function del(params) {
  return request.post(baseUrl + '${.TableName | formatEntityField}/delete', params)
}
